package Plugin
{
	import Objects.GameObject;
	
	import Scenes.GameScene;
	
	public class GamePlugin 
	{
		protected var ticks:int = 0;
		
		public var removed:Boolean = false;
		
		public var gs:GameScene;
		
		protected function _update():void
		{
			
		}
		protected function $update():void
		{
			
		}
		public final function update():void
		{
			ticks++;
			$update();
			_update();
		}
		public final function remove():void
		{
			gs.toSyncPlugins=true;
			_remove();
			removed=true;
		}
		protected function _remove():void
		{
			
		}
	}
}